package viewer;

import java.util.ArrayList;
import java.util.List;

import model.RoffVector3D;
import model.IPixelizationListener;
import model.TrianglePixelization;

public class PixelizationListener implements IPixelizationListener {
	private List<RoffVector3D> points=new ArrayList<RoffVector3D>();
	public PixelizationListener(TrianglePixelization p){
		p.setListener(this); 
	}
	@Override
	public void informs(double x, double y, double z,double weight) {
		points.add(new RoffVector3D(x,y,z));
		//System.out.println(x+","+y+","+z);
	}
	public void clear(){
		points.clear(); 
	}
	public List<RoffVector3D> getPoints() {
		return points;
	}
}
